<?php

$title = $_POST["Title"];
$content = $_POST["Content"];
$id = $_GET["id"];
$updateTime = date_format(new DateTime(),'Y-m-d H:i:s');


$sql = "UPDATE `article` SET `Title`='$title', `Content`='$content', `UpdateTime`='$updateTime' WHERE Id='$id'"; 

$conn = new mysqli("localhost","root","","myblog");
$conn->query($sql);
if($conn->error) die($conn->error);
echo "修改成功";

$url = "article_list.php";
Header("Location: $url");
die(""); 



?>